package com.fpx.metadata.bean.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.*;

@Table(name = "schemata")
@Data
@ApiModel(value = "库信息")
public class Schemata {

    @Id
    @KeySql(useGeneratedKeys = true)
    @ApiModelProperty(value = "id")
    private Long id;

    @Column
    @ApiModelProperty(value = "地址")
    private String host;

    @Column(name = "schema_name")
    @ApiModelProperty(value = "库名")
    private String schemaName;

    @Column(name = "default_character_set_name")
    @ApiModelProperty(value = "默认字符集")
    private String defaultCharacterSetName;

    @Column(name = "default_collation_name")
    @ApiModelProperty(value = "排序规则")
    private String defaultCollationName;

}